package com.java.thread;

public class ThreadRunnable implements Runnable {

  public synchronized void output () {
    for (int i = 0; i < 100; i++) {
      System.out.println (String.format ("threadRunnable for the %s time", i));
    }
  }

  @Override
  public void run () {
    System.out.println ("ThreadRunnable run");
    output ();

  }
}
